% this code is used to check the network using the data of input

total_num=10000;
idx=randperm(total_num,20);
% idx=27;
% for i = 1: numel(idx)
%     subplot(4,5,i);
%     output2D=norm_mat(reshape(output_minus(:,idx(i)),54,98));
% %     output2D=reshape(output_minus_norm(:,idx(i)),54,98);
%     imshow(output2D)
%     title('Output_minus')
% end
for i = 1: numel(idx)
    subplot(4,5,i);
    imshow(image_input(:,:,1,idx(i)))
    title('Input')
end

figure
for i = 1: numel(idx)
    subplot(4,5,i);
    
    
    output2D=reshape(output(:,idx(i)),54,98);
%     output2D=reshape(output_minus_norm(:,idx(i)),54,98);
    imshow(output2D(:,:))
    title('Output')
end
figure
for i = 1: numel(idx)
    subplot(4,5,i);
    Predicted=predict(net,image_input(:,:,1,idx(i)));
    Predicted2D=reshape(Predicted,54,98);
    Predicted2D=norm_mat(image_input(:,:,1,idx(i))+Predicted2D);
    imshow(Predicted2D)
    title('Predicted')
end
